projects
/
gtk+3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
255e2dd
)
x11: Balance an error trap
author
Emmanuele Bassi
<ebassi@gnome.org>
Sun, 11 Feb 2018 14:50:27 +0000
(14:50 +0000)
committer
Emmanuele Bassi
<ebassi@gnome.org>
Sun, 11 Feb 2018 23:28:50 +0000
(23:28 +0000)
We are pushing an error trap, and never popping it from the stack.
gdk/x11/gdkdnd-x11.c
patch
|
blob
|
history
diff --git
a/gdk/x11/gdkdnd-x11.c
b/gdk/x11/gdkdnd-x11.c
index 09eb1b2ef2f6e3c5ec761dddda25398f0f910a4f..f335d502ce1da2fd182880b6ce74e7859a9cce31 100644
(file)
--- a/
gdk/x11/gdkdnd-x11.c
+++ b/
gdk/x11/gdkdnd-x11.c
@@
-2701,7
+2701,7
@@
drag_context_grab (GdkDragContext *context)
g_set_object (&x11_context->grab_seat, seat);
- gdk_
error_trap_push (
);
+ gdk_
x11_display_error_trap_push (gdk_window_get_display (x11_context->ipc_window)
);
for (i = 0; i < G_N_ELEMENTS (grab_keys); ++i)
{
@@
-2753,6
+2753,8
@@
drag_context_grab (GdkDragContext *context)
}
}
+ gdk_x11_display_error_trap_pop_ignored (gdk_window_get_display (x11_context->ipc_window));
+
return TRUE;
}